<script>
import GmTable from "@/view/components/gmTable.vue";

export default {
  components: {
    GmTable: GmTable
  },
  data() {
    return {
      tableConfig: {
        control: 't-student',
        mainKey: 'studentCode'//数据主键，用于删除该条数据
      },
      tableColumns: [{
        name: 'stationName',
        label: '站点名称',
        id: 'stationName',
        required: '/t-station/findPage?current=1&size=100',
        searchType: 'select',
        props: {
          label: 'stationName',
          value: 'stationCode'
        }
      }, {
        name: 'studentFulllName',
        label: '学生姓名',
        id: 'studentFulllName',
        search: true,
        required: false,
        searchType: 'input',
      }, {
        name: 'className',
        label: '班级名称',
        search:false,
        id: 'className',
        required: false,
        searchType: 'input',
      }, {
        name: 'studentBoardingArrangement',
        label: '学生居住安排',
        id: 'studentBoardingArrangement',
        search: false,
        searchType: 'select',
        required: '/common/getItem/live',
      }, {
        name: 'createDate',
        label: '创建时间',
        id: 'createDate',
        search: false,
        searchType: 'state',
        addHide: true,
      }, {
        name: 'createUserName',
        label: '创建人',
        id: 'createUserName',
        search: false,
        searchType: 'state',
        addHide: true,
      }, {
        name: 'state',
        label: '状态',
        id: 'state',
        search: false,
        required: '/common/getItem/school_state',
        searchType: 'state',
      }],
    }
  },
}
</script>

<template>
  <div class="page-car">
    <gm-table :table-columns="tableColumns" :table-config="tableConfig"></gm-table>
  </div>
</template>

<style scoped>

</style>
